<div class="row">
	<div class="box col-md-12">
		<div class="box-inner">
			<div class="box-header well">
				<h2><i class="glyphicon glyphicon-user"></i> Danh Sách Thông Tin Người Dùng</h2>
				<div class="box-icon">
					<a href="#" class="btn btn-minimize btn-round btn-default"><i class="glyphicon glyphicon-chevron-up"></i></a>
					<a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a>
				</div>
			</div>
			<div class="box-content">
					<table class="table table-striped table-bordered responsive">
						<thead>
							<tr role="row">
								<th>stt</th>
								<td>Tài Khoản</td>
								<th>Họ</th>
								<th>Tên</th>
								<th>Giới Tính</th>
								<th>Địa chỉ</th>
								<th>Email</th>
								<th>Ngày sinh</th>
								<th>Ngày Kích hoạt</th>
								
								<th></th>
							</tr>
						</thead>
						<tbody><?php
						if(!empty($vuser)):
							foreach($vuser as $v):
							?><tr class="">
								<td><?php echo $v->getId(); ?></td>
								<td><?php echo $v->getShUser()->getUsername();?></td>
								<td><?php echo $v->getFirstname(); ?></td>
								<td><?php echo $v->getLastname(); ?></td>
								<td><?php echo $v->getGender(); ?></td>
								<td>
									<?php echo $v->getAddress(); ?>
								</td>
								<td>
									<?php echo $v->getEmail(); ?>
								</td>
								<td>
									<?php echo $v->getBirthday(); ?>
								</td>
								
								<td><?php echo date('d-m-Y',$v->getDate()); ?></td>
								<td>
									<a class="btn btn-info" href="<?php echo site_url().'admin/userinfo/edit/'; ?><?php echo $v->getId(); ?>">
										<i class="glyphicon glyphicon-edit icon-white"></i>
										Sửa
									</a>
									<a class="btn btn-danger" href="<?php echo site_url().'admin/userinfo/delete/'; ?><?php echo $v->getId(); ?>">
										<i class="glyphicon glyphicon-edit icon-white"></i>
										Xóa
									</a>
								</td>
							
							</tr><?php
							endforeach;
						else:
							?><tr>
								<td>Hiện không có thông tin người dùng này</td>
							</tr><?php
						endif;
						?></tbody>
						
					</table>
					
			</div>
		</div>
	</div>
</div>